#ifndef __AS_OPTION_SCREEN__H__
#define __AS_OPTION_SCREEN__H__

#include "ASScreen.h"
#include "ASScreenMgr.h"
#include "..\control\ASLabel.h"
#include "..\control\ASImage.h"
#include "..\control\ASButton.h"
#include "..\control\ASTableBar.h"


typedef enum
{
    AS_OPTION_DETAIL,//just for app or file,to show detail screen
    AS_OPTION_ENTER,//just for folder to enter into level 2 list
    AS_OPTION_DOWNLOAD,//start download
    AS_OPTION_RUN,//run a app
    AS_OPTION_DELETE,//delete task or app
    AS_OPTION_HELP,
    AS_OPTION_EXIT,

    AS_OPTION_ITEM_MAX
} as_option_item;

typedef struct
{
    as_screen base;

    as_image* opt_bg_p;
    as_image* bottom_bar_bg_p;
    as_button* lbtn_p;
    as_button* rbtn_p;
    as_tablebar* table_p;
    as_void_func lsk_func;
} as_option_screen;


void as_option_screen_init(as_screen* screen_p);
void as_option_screen_deinit(as_screen* screen_p);

void as_show_option_screen(ASINT counts, as_option_item* item_array);
void as_option_request_help_callback(ASINT if_success);
#endif//__AS_OPTION_SCREEN__H__